import React from 'react';
import { Modal } from 'components'
import { Button } from 'antd';
import ModalForm from './Demo2'

export default class extends React.Component {
	handleAdd = async () => {

		let addDataRes = await Modal.show(
			ModalForm,
			{ title: "新增表单", width: 1000, footer: null },
		);
		console.log('demo3-新增表单数据addDataRes：', addDataRes)

	}
	render() {
		return (
			<div>
				demo3
				<Button type="primary" onClick={this.handleAdd}>
					新增
				</Button>
			</div>
		)
	}
}

